package org.example.y24.m12;

import org.apache.commons.math3.distribution.NormalDistribution;

public class QuantileCalculator {
    public static void main(String[] args) {
        double alpha = 0.05; // 显著性水平
        double beta = 0.10;  // 功效水平

        NormalDistribution normalDist = new NormalDistribution();

        double A = normalDist.inverseCumulativeProbability((1 - alpha) / 2);
        double B = normalDist.inverseCumulativeProbability(1 - (1 - beta) / 2);

        System.out.println("A = " + A);
        System.out.println("B = " + B);
    }
}
